package com.yunshipei.ui.view;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;

import com.yunshipei.enterplorer.R;

/**
 * Created by PC on 2016/6/28.
 */
public class CollectionLongPressDialog extends Dialog {
    Context context;
    private View customView;

    public CollectionLongPressDialog(Context context) {
        super(context);
        this.context = context;
    }

    public CollectionLongPressDialog(Context context, int themeResId) {
        super(context, themeResId);
        this.context = context;
        LayoutInflater inflater = LayoutInflater.from(context);
        customView = inflater.inflate(R.layout.collection_long_press_view, null);
    }


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.setContentView(customView);
    }

    public View findViewById(int id) {
        return super.findViewById(id);
    }

    public View getCustomView() {
        return customView;
    }
}
